using System.ComponentModel.DataAnnotations.Schema;

namespace RBAC.Api.Demain.Entities
{
    /// <summary>
    /// 用户角色关联表
    /// </summary>
    [Table("UserRole")]
    public class UserRole : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool State { get; set; } = false;
    }
} 